const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  userId: state => state.user.userInfo.userId,//用户id，判断有没有获取数据成功
  avatar: state => state.user.userInfo.staffPhoto, // 头像
  routes: state=>state.user.routes,
  name: state => state.user.userInfo.username ,// 用户名称
  company:state=>state.user.userInfo.company,//公司名称
  departmentName:state=>state.user.userInfo.departmentName//部门名称

}
export default getters
